package day0621;

public class Test3 {
    public static void main(String[] args) {
        double[]  ds={3.14,    5.5,   9.6};
        print(ds);

        double []  ds2={3.6,   5.9,   9.4,  10.6};
        print(ds2);

    }

    //函数/方法：　　将一段相对独立的代码单独封装起来
    private static void print(double[] ds) {
        for (int i = 0; i <ds.length ; i++) {
            System.out.println(ds[i]);
        }
    }//休息

}


